package com.cug.campus_sh_market_server.entity.param.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cug.campus_sh_market_server.entity.po.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author sxt
 * @since 2022-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="GoodsPut对象", description="商品修改对象")
public class GoodsPutParam extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品价格")
    private Double price;

    @ApiModelProperty(value = "封面url id")
    private String coverUrlId;

    @ApiModelProperty(value = "商品描述")
    private String goodsDes;

    @ApiModelProperty(value = "商品类别")
    private Integer goodsType;

    @ApiModelProperty(value = "商品经度")
    private Double goodsLng;

    @ApiModelProperty(value = "商品纬度")
    private Double goodsLat;

    @ApiModelProperty(value = "入手渠道(来源)")
    private String source;

    @ApiModelProperty(value = "新旧程度")
    private Float depreciationDegree;

    @ApiModelProperty(value = "商品状态（0: 上架, 1: 下架, 2: 已售出）")
    private Integer status;
}
